/*
** gere_event.c for RayTracer in /home/jeanma_d//Damien/Igraph/RayTracer/gere.event.c
** 
** Made by damien jeanmaire
** Login   <jeanma_d@epitech.net>
** 
** Started on  Thu Nov 10 12:23:59 2011 damien jeanmaire
** Last update Thu Mar 29 10:41:22 2012 damien jeanmaire
*/

#include	"rt.h"

int		gere_key(int keycode, void *param)
{
  t_mlx		*data;

  data = param;
  if (keycode == KEY_ESC)
    exit(1);
  return (0);
}

int		gere_expose(t_mlx *ptr)
{
  mlx_put_image_to_window(ptr->mlx, ptr->win, ptr->img, 0, 0);
  return (0);
}
